public static void main(String[] args) {
    for (int i=0; i<=40; i++)
        System.out.print(fib(i)+", ");
}